package com.zhongwang.mms.gen.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MOrderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MOrderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOdrIdIsNull() {
            addCriterion("odr_id is null");
            return (Criteria) this;
        }

        public Criteria andOdrIdIsNotNull() {
            addCriterion("odr_id is not null");
            return (Criteria) this;
        }

        public Criteria andOdrIdEqualTo(Integer value) {
            addCriterion("odr_id =", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdNotEqualTo(Integer value) {
            addCriterion("odr_id <>", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdGreaterThan(Integer value) {
            addCriterion("odr_id >", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_id >=", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdLessThan(Integer value) {
            addCriterion("odr_id <", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdLessThanOrEqualTo(Integer value) {
            addCriterion("odr_id <=", value, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdIn(List<Integer> values) {
            addCriterion("odr_id in", values, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdNotIn(List<Integer> values) {
            addCriterion("odr_id not in", values, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdBetween(Integer value1, Integer value2) {
            addCriterion("odr_id between", value1, value2, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrIdNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_id not between", value1, value2, "odrId");
            return (Criteria) this;
        }

        public Criteria andOdrCodeIsNull() {
            addCriterion("odr_code is null");
            return (Criteria) this;
        }

        public Criteria andOdrCodeIsNotNull() {
            addCriterion("odr_code is not null");
            return (Criteria) this;
        }

        public Criteria andOdrCodeEqualTo(String value) {
            addCriterion("odr_code =", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeNotEqualTo(String value) {
            addCriterion("odr_code <>", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeGreaterThan(String value) {
            addCriterion("odr_code >", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeGreaterThanOrEqualTo(String value) {
            addCriterion("odr_code >=", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeLessThan(String value) {
            addCriterion("odr_code <", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeLessThanOrEqualTo(String value) {
            addCriterion("odr_code <=", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeLike(String value) {
            addCriterion("odr_code like", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeNotLike(String value) {
            addCriterion("odr_code not like", value, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeIn(List<String> values) {
            addCriterion("odr_code in", values, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeNotIn(List<String> values) {
            addCriterion("odr_code not in", values, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeBetween(String value1, String value2) {
            addCriterion("odr_code between", value1, value2, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrCodeNotBetween(String value1, String value2) {
            addCriterion("odr_code not between", value1, value2, "odrCode");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateIsNull() {
            addCriterion("odr_make_date is null");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateIsNotNull() {
            addCriterion("odr_make_date is not null");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateEqualTo(Date value) {
            addCriterion("odr_make_date =", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateNotEqualTo(Date value) {
            addCriterion("odr_make_date <>", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateGreaterThan(Date value) {
            addCriterion("odr_make_date >", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateGreaterThanOrEqualTo(Date value) {
            addCriterion("odr_make_date >=", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateLessThan(Date value) {
            addCriterion("odr_make_date <", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateLessThanOrEqualTo(Date value) {
            addCriterion("odr_make_date <=", value, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateIn(List<Date> values) {
            addCriterion("odr_make_date in", values, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateNotIn(List<Date> values) {
            addCriterion("odr_make_date not in", values, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateBetween(Date value1, Date value2) {
            addCriterion("odr_make_date between", value1, value2, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakeDateNotBetween(Date value1, Date value2) {
            addCriterion("odr_make_date not between", value1, value2, "odrMakeDate");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIsNull() {
            addCriterion("odr_make_person is null");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIsNotNull() {
            addCriterion("odr_make_person is not null");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonEqualTo(String value) {
            addCriterion("odr_make_person =", value, "odrMakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonNotEqualTo(String value) {
            addCriterion("odr_make_person <>", value, "odrMakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonGreaterThan(String value) {
            addCriterion("odr_make_person >", value, "odrMakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonGreaterThanOrEqualTo(String value) {
            addCriterion("odr_make_person >=", value, "odrMakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonLessThan(String value) {
            addCriterion("odr_make_person <", value, "odrMakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonLessThanOrEqualTo(String value) {
            addCriterion("odr_make_person <=", value, "odrMakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonLike(String value) {
            addCriterion("odr_make_person like", value, "odrMakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonNotLike(String value) {
            addCriterion("odr_make_person not like", value, "odrMakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonIn(List<String> values) {
            addCriterion("odr_make_person in", values, "odrMakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonNotIn(List<String> values) {
            addCriterion("odr_make_person not in", values, "odrMakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonBetween(String value1, String value2) {
            addCriterion("odr_make_person between", value1, value2, "odrMakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrMakePersonNotBetween(String value1, String value2) {
            addCriterion("odr_make_person not between", value1, value2, "odrMakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrExplanationIsNull() {
            addCriterion("odr_explanation is null");
            return (Criteria) this;
        }

        public Criteria andOdrExplanationIsNotNull() {
            addCriterion("odr_explanation is not null");
            return (Criteria) this;
        }

        public Criteria andOdrExplanationEqualTo(String value) {
            addCriterion("odr_explanation =", value, "odrExplanation");
            return (Criteria) this;
        }

        public Criteria andOdrExplanationNotEqualTo(String value) {
            addCriterion("odr_explanation <>", value, "odrExplanation");
            return (Criteria) this;
        }

        public Criteria andOdrExplanationGreaterThan(String value) {
            addCriterion("odr_explanation >", value, "odrExplanation");
            return (Criteria) this;
        }

        public Criteria andOdrExplanationGreaterThanOrEqualTo(String value) {
            addCriterion("odr_explanation >=", value, "odrExplanation");
            return (Criteria) this;
        }

        public Criteria andOdrExplanationLessThan(String value) {
            addCriterion("odr_explanation <", value, "odrExplanation");
            return (Criteria) this;
        }

        public Criteria andOdrExplanationLessThanOrEqualTo(String value) {
            addCriterion("odr_explanation <=", value, "odrExplanation");
            return (Criteria) this;
        }

        public Criteria andOdrExplanationLike(String value) {
            addCriterion("odr_explanation like", value, "odrExplanation");
            return (Criteria) this;
        }

        public Criteria andOdrExplanationNotLike(String value) {
            addCriterion("odr_explanation not like", value, "odrExplanation");
            return (Criteria) this;
        }

        public Criteria andOdrExplanationIn(List<String> values) {
            addCriterion("odr_explanation in", values, "odrExplanation");
            return (Criteria) this;
        }

        public Criteria andOdrExplanationNotIn(List<String> values) {
            addCriterion("odr_explanation not in", values, "odrExplanation");
            return (Criteria) this;
        }

        public Criteria andOdrExplanationBetween(String value1, String value2) {
            addCriterion("odr_explanation between", value1, value2, "odrExplanation");
            return (Criteria) this;
        }

        public Criteria andOdrExplanationNotBetween(String value1, String value2) {
            addCriterion("odr_explanation not between", value1, value2, "odrExplanation");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonIsNull() {
            addCriterion("odr_take_person is null");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonIsNotNull() {
            addCriterion("odr_take_person is not null");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonEqualTo(String value) {
            addCriterion("odr_take_person =", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonNotEqualTo(String value) {
            addCriterion("odr_take_person <>", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonGreaterThan(String value) {
            addCriterion("odr_take_person >", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonGreaterThanOrEqualTo(String value) {
            addCriterion("odr_take_person >=", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonLessThan(String value) {
            addCriterion("odr_take_person <", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonLessThanOrEqualTo(String value) {
            addCriterion("odr_take_person <=", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonLike(String value) {
            addCriterion("odr_take_person like", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonNotLike(String value) {
            addCriterion("odr_take_person not like", value, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonIn(List<String> values) {
            addCriterion("odr_take_person in", values, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonNotIn(List<String> values) {
            addCriterion("odr_take_person not in", values, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonBetween(String value1, String value2) {
            addCriterion("odr_take_person between", value1, value2, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTakePersonNotBetween(String value1, String value2) {
            addCriterion("odr_take_person not between", value1, value2, "odrTakePerson");
            return (Criteria) this;
        }

        public Criteria andOdrTypeIsNull() {
            addCriterion("odr_type is null");
            return (Criteria) this;
        }

        public Criteria andOdrTypeIsNotNull() {
            addCriterion("odr_type is not null");
            return (Criteria) this;
        }

        public Criteria andOdrTypeEqualTo(Integer value) {
            addCriterion("odr_type =", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeNotEqualTo(Integer value) {
            addCriterion("odr_type <>", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeGreaterThan(Integer value) {
            addCriterion("odr_type >", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_type >=", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeLessThan(Integer value) {
            addCriterion("odr_type <", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeLessThanOrEqualTo(Integer value) {
            addCriterion("odr_type <=", value, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeIn(List<Integer> values) {
            addCriterion("odr_type in", values, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeNotIn(List<Integer> values) {
            addCriterion("odr_type not in", values, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeBetween(Integer value1, Integer value2) {
            addCriterion("odr_type between", value1, value2, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_type not between", value1, value2, "odrType");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagIsNull() {
            addCriterion("odr_ity_flag is null");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagIsNotNull() {
            addCriterion("odr_ity_flag is not null");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagEqualTo(Integer value) {
            addCriterion("odr_ity_flag =", value, "odrItyFlag");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagNotEqualTo(Integer value) {
            addCriterion("odr_ity_flag <>", value, "odrItyFlag");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagGreaterThan(Integer value) {
            addCriterion("odr_ity_flag >", value, "odrItyFlag");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_ity_flag >=", value, "odrItyFlag");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagLessThan(Integer value) {
            addCriterion("odr_ity_flag <", value, "odrItyFlag");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagLessThanOrEqualTo(Integer value) {
            addCriterion("odr_ity_flag <=", value, "odrItyFlag");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagIn(List<Integer> values) {
            addCriterion("odr_ity_flag in", values, "odrItyFlag");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagNotIn(List<Integer> values) {
            addCriterion("odr_ity_flag not in", values, "odrItyFlag");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagBetween(Integer value1, Integer value2) {
            addCriterion("odr_ity_flag between", value1, value2, "odrItyFlag");
            return (Criteria) this;
        }

        public Criteria andOdrItyFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_ity_flag not between", value1, value2, "odrItyFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkIsNull() {
            addCriterion("odr_remark is null");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkIsNotNull() {
            addCriterion("odr_remark is not null");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkEqualTo(String value) {
            addCriterion("odr_remark =", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkNotEqualTo(String value) {
            addCriterion("odr_remark <>", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkGreaterThan(String value) {
            addCriterion("odr_remark >", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("odr_remark >=", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkLessThan(String value) {
            addCriterion("odr_remark <", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkLessThanOrEqualTo(String value) {
            addCriterion("odr_remark <=", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkLike(String value) {
            addCriterion("odr_remark like", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkNotLike(String value) {
            addCriterion("odr_remark not like", value, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkIn(List<String> values) {
            addCriterion("odr_remark in", values, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkNotIn(List<String> values) {
            addCriterion("odr_remark not in", values, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkBetween(String value1, String value2) {
            addCriterion("odr_remark between", value1, value2, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRemarkNotBetween(String value1, String value2) {
            addCriterion("odr_remark not between", value1, value2, "odrRemark");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagIsNull() {
            addCriterion("odr_red_flag is null");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagIsNotNull() {
            addCriterion("odr_red_flag is not null");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagEqualTo(Integer value) {
            addCriterion("odr_red_flag =", value, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagNotEqualTo(Integer value) {
            addCriterion("odr_red_flag <>", value, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagGreaterThan(Integer value) {
            addCriterion("odr_red_flag >", value, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_red_flag >=", value, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagLessThan(Integer value) {
            addCriterion("odr_red_flag <", value, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagLessThanOrEqualTo(Integer value) {
            addCriterion("odr_red_flag <=", value, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagIn(List<Integer> values) {
            addCriterion("odr_red_flag in", values, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagNotIn(List<Integer> values) {
            addCriterion("odr_red_flag not in", values, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagBetween(Integer value1, Integer value2) {
            addCriterion("odr_red_flag between", value1, value2, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrRedFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_red_flag not between", value1, value2, "odrRedFlag");
            return (Criteria) this;
        }

        public Criteria andOdrDateIsNull() {
            addCriterion("odr_date is null");
            return (Criteria) this;
        }

        public Criteria andOdrDateIsNotNull() {
            addCriterion("odr_date is not null");
            return (Criteria) this;
        }

        public Criteria andOdrDateEqualTo(Date value) {
            addCriterion("odr_date =", value, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateNotEqualTo(Date value) {
            addCriterion("odr_date <>", value, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateGreaterThan(Date value) {
            addCriterion("odr_date >", value, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateGreaterThanOrEqualTo(Date value) {
            addCriterion("odr_date >=", value, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateLessThan(Date value) {
            addCriterion("odr_date <", value, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateLessThanOrEqualTo(Date value) {
            addCriterion("odr_date <=", value, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateIn(List<Date> values) {
            addCriterion("odr_date in", values, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateNotIn(List<Date> values) {
            addCriterion("odr_date not in", values, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateBetween(Date value1, Date value2) {
            addCriterion("odr_date between", value1, value2, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrDateNotBetween(Date value1, Date value2) {
            addCriterion("odr_date not between", value1, value2, "odrDate");
            return (Criteria) this;
        }

        public Criteria andOdrCagIdIsNull() {
            addCriterion("odr_cag_id is null");
            return (Criteria) this;
        }

        public Criteria andOdrCagIdIsNotNull() {
            addCriterion("odr_cag_id is not null");
            return (Criteria) this;
        }

        public Criteria andOdrCagIdEqualTo(Integer value) {
            addCriterion("odr_cag_id =", value, "odrCagId");
            return (Criteria) this;
        }

        public Criteria andOdrCagIdNotEqualTo(Integer value) {
            addCriterion("odr_cag_id <>", value, "odrCagId");
            return (Criteria) this;
        }

        public Criteria andOdrCagIdGreaterThan(Integer value) {
            addCriterion("odr_cag_id >", value, "odrCagId");
            return (Criteria) this;
        }

        public Criteria andOdrCagIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_cag_id >=", value, "odrCagId");
            return (Criteria) this;
        }

        public Criteria andOdrCagIdLessThan(Integer value) {
            addCriterion("odr_cag_id <", value, "odrCagId");
            return (Criteria) this;
        }

        public Criteria andOdrCagIdLessThanOrEqualTo(Integer value) {
            addCriterion("odr_cag_id <=", value, "odrCagId");
            return (Criteria) this;
        }

        public Criteria andOdrCagIdIn(List<Integer> values) {
            addCriterion("odr_cag_id in", values, "odrCagId");
            return (Criteria) this;
        }

        public Criteria andOdrCagIdNotIn(List<Integer> values) {
            addCriterion("odr_cag_id not in", values, "odrCagId");
            return (Criteria) this;
        }

        public Criteria andOdrCagIdBetween(Integer value1, Integer value2) {
            addCriterion("odr_cag_id between", value1, value2, "odrCagId");
            return (Criteria) this;
        }

        public Criteria andOdrCagIdNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_cag_id not between", value1, value2, "odrCagId");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopIsNull() {
            addCriterion("odr_take_workshop is null");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopIsNotNull() {
            addCriterion("odr_take_workshop is not null");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopEqualTo(String value) {
            addCriterion("odr_take_workshop =", value, "odrTakeWorkshop");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopNotEqualTo(String value) {
            addCriterion("odr_take_workshop <>", value, "odrTakeWorkshop");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopGreaterThan(String value) {
            addCriterion("odr_take_workshop >", value, "odrTakeWorkshop");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopGreaterThanOrEqualTo(String value) {
            addCriterion("odr_take_workshop >=", value, "odrTakeWorkshop");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopLessThan(String value) {
            addCriterion("odr_take_workshop <", value, "odrTakeWorkshop");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopLessThanOrEqualTo(String value) {
            addCriterion("odr_take_workshop <=", value, "odrTakeWorkshop");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopLike(String value) {
            addCriterion("odr_take_workshop like", value, "odrTakeWorkshop");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopNotLike(String value) {
            addCriterion("odr_take_workshop not like", value, "odrTakeWorkshop");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopIn(List<String> values) {
            addCriterion("odr_take_workshop in", values, "odrTakeWorkshop");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopNotIn(List<String> values) {
            addCriterion("odr_take_workshop not in", values, "odrTakeWorkshop");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopBetween(String value1, String value2) {
            addCriterion("odr_take_workshop between", value1, value2, "odrTakeWorkshop");
            return (Criteria) this;
        }

        public Criteria andOdrTakeWorkshopNotBetween(String value1, String value2) {
            addCriterion("odr_take_workshop not between", value1, value2, "odrTakeWorkshop");
            return (Criteria) this;
        }

        public Criteria andOdrTakeDeptIsNull() {
            addCriterion("odr_take_dept is null");
            return (Criteria) this;
        }

        public Criteria andOdrTakeDeptIsNotNull() {
            addCriterion("odr_take_dept is not null");
            return (Criteria) this;
        }

        public Criteria andOdrTakeDeptEqualTo(String value) {
            addCriterion("odr_take_dept =", value, "odrTakeDept");
            return (Criteria) this;
        }

        public Criteria andOdrTakeDeptNotEqualTo(String value) {
            addCriterion("odr_take_dept <>", value, "odrTakeDept");
            return (Criteria) this;
        }

        public Criteria andOdrTakeDeptGreaterThan(String value) {
            addCriterion("odr_take_dept >", value, "odrTakeDept");
            return (Criteria) this;
        }

        public Criteria andOdrTakeDeptGreaterThanOrEqualTo(String value) {
            addCriterion("odr_take_dept >=", value, "odrTakeDept");
            return (Criteria) this;
        }

        public Criteria andOdrTakeDeptLessThan(String value) {
            addCriterion("odr_take_dept <", value, "odrTakeDept");
            return (Criteria) this;
        }

        public Criteria andOdrTakeDeptLessThanOrEqualTo(String value) {
            addCriterion("odr_take_dept <=", value, "odrTakeDept");
            return (Criteria) this;
        }

        public Criteria andOdrTakeDeptLike(String value) {
            addCriterion("odr_take_dept like", value, "odrTakeDept");
            return (Criteria) this;
        }

        public Criteria andOdrTakeDeptNotLike(String value) {
            addCriterion("odr_take_dept not like", value, "odrTakeDept");
            return (Criteria) this;
        }

        public Criteria andOdrTakeDeptIn(List<String> values) {
            addCriterion("odr_take_dept in", values, "odrTakeDept");
            return (Criteria) this;
        }

        public Criteria andOdrTakeDeptNotIn(List<String> values) {
            addCriterion("odr_take_dept not in", values, "odrTakeDept");
            return (Criteria) this;
        }

        public Criteria andOdrTakeDeptBetween(String value1, String value2) {
            addCriterion("odr_take_dept between", value1, value2, "odrTakeDept");
            return (Criteria) this;
        }

        public Criteria andOdrTakeDeptNotBetween(String value1, String value2) {
            addCriterion("odr_take_dept not between", value1, value2, "odrTakeDept");
            return (Criteria) this;
        }

        public Criteria andOdrTakeAddIsNull() {
            addCriterion("odr_take_add is null");
            return (Criteria) this;
        }

        public Criteria andOdrTakeAddIsNotNull() {
            addCriterion("odr_take_add is not null");
            return (Criteria) this;
        }

        public Criteria andOdrTakeAddEqualTo(String value) {
            addCriterion("odr_take_add =", value, "odrTakeAdd");
            return (Criteria) this;
        }

        public Criteria andOdrTakeAddNotEqualTo(String value) {
            addCriterion("odr_take_add <>", value, "odrTakeAdd");
            return (Criteria) this;
        }

        public Criteria andOdrTakeAddGreaterThan(String value) {
            addCriterion("odr_take_add >", value, "odrTakeAdd");
            return (Criteria) this;
        }

        public Criteria andOdrTakeAddGreaterThanOrEqualTo(String value) {
            addCriterion("odr_take_add >=", value, "odrTakeAdd");
            return (Criteria) this;
        }

        public Criteria andOdrTakeAddLessThan(String value) {
            addCriterion("odr_take_add <", value, "odrTakeAdd");
            return (Criteria) this;
        }

        public Criteria andOdrTakeAddLessThanOrEqualTo(String value) {
            addCriterion("odr_take_add <=", value, "odrTakeAdd");
            return (Criteria) this;
        }

        public Criteria andOdrTakeAddLike(String value) {
            addCriterion("odr_take_add like", value, "odrTakeAdd");
            return (Criteria) this;
        }

        public Criteria andOdrTakeAddNotLike(String value) {
            addCriterion("odr_take_add not like", value, "odrTakeAdd");
            return (Criteria) this;
        }

        public Criteria andOdrTakeAddIn(List<String> values) {
            addCriterion("odr_take_add in", values, "odrTakeAdd");
            return (Criteria) this;
        }

        public Criteria andOdrTakeAddNotIn(List<String> values) {
            addCriterion("odr_take_add not in", values, "odrTakeAdd");
            return (Criteria) this;
        }

        public Criteria andOdrTakeAddBetween(String value1, String value2) {
            addCriterion("odr_take_add between", value1, value2, "odrTakeAdd");
            return (Criteria) this;
        }

        public Criteria andOdrTakeAddNotBetween(String value1, String value2) {
            addCriterion("odr_take_add not between", value1, value2, "odrTakeAdd");
            return (Criteria) this;
        }

        public Criteria andOdrCarIsNull() {
            addCriterion("odr_car is null");
            return (Criteria) this;
        }

        public Criteria andOdrCarIsNotNull() {
            addCriterion("odr_car is not null");
            return (Criteria) this;
        }

        public Criteria andOdrCarEqualTo(String value) {
            addCriterion("odr_car =", value, "odrCar");
            return (Criteria) this;
        }

        public Criteria andOdrCarNotEqualTo(String value) {
            addCriterion("odr_car <>", value, "odrCar");
            return (Criteria) this;
        }

        public Criteria andOdrCarGreaterThan(String value) {
            addCriterion("odr_car >", value, "odrCar");
            return (Criteria) this;
        }

        public Criteria andOdrCarGreaterThanOrEqualTo(String value) {
            addCriterion("odr_car >=", value, "odrCar");
            return (Criteria) this;
        }

        public Criteria andOdrCarLessThan(String value) {
            addCriterion("odr_car <", value, "odrCar");
            return (Criteria) this;
        }

        public Criteria andOdrCarLessThanOrEqualTo(String value) {
            addCriterion("odr_car <=", value, "odrCar");
            return (Criteria) this;
        }

        public Criteria andOdrCarLike(String value) {
            addCriterion("odr_car like", value, "odrCar");
            return (Criteria) this;
        }

        public Criteria andOdrCarNotLike(String value) {
            addCriterion("odr_car not like", value, "odrCar");
            return (Criteria) this;
        }

        public Criteria andOdrCarIn(List<String> values) {
            addCriterion("odr_car in", values, "odrCar");
            return (Criteria) this;
        }

        public Criteria andOdrCarNotIn(List<String> values) {
            addCriterion("odr_car not in", values, "odrCar");
            return (Criteria) this;
        }

        public Criteria andOdrCarBetween(String value1, String value2) {
            addCriterion("odr_car between", value1, value2, "odrCar");
            return (Criteria) this;
        }

        public Criteria andOdrCarNotBetween(String value1, String value2) {
            addCriterion("odr_car not between", value1, value2, "odrCar");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonIsNull() {
            addCriterion("odr_service_person is null");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonIsNotNull() {
            addCriterion("odr_service_person is not null");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonEqualTo(String value) {
            addCriterion("odr_service_person =", value, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonNotEqualTo(String value) {
            addCriterion("odr_service_person <>", value, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonGreaterThan(String value) {
            addCriterion("odr_service_person >", value, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonGreaterThanOrEqualTo(String value) {
            addCriterion("odr_service_person >=", value, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonLessThan(String value) {
            addCriterion("odr_service_person <", value, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonLessThanOrEqualTo(String value) {
            addCriterion("odr_service_person <=", value, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonLike(String value) {
            addCriterion("odr_service_person like", value, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonNotLike(String value) {
            addCriterion("odr_service_person not like", value, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonIn(List<String> values) {
            addCriterion("odr_service_person in", values, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonNotIn(List<String> values) {
            addCriterion("odr_service_person not in", values, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonBetween(String value1, String value2) {
            addCriterion("odr_service_person between", value1, value2, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrServicePersonNotBetween(String value1, String value2) {
            addCriterion("odr_service_person not between", value1, value2, "odrServicePerson");
            return (Criteria) this;
        }

        public Criteria andOdrSendPeronIsNull() {
            addCriterion("odr_send_peron is null");
            return (Criteria) this;
        }

        public Criteria andOdrSendPeronIsNotNull() {
            addCriterion("odr_send_peron is not null");
            return (Criteria) this;
        }

        public Criteria andOdrSendPeronEqualTo(String value) {
            addCriterion("odr_send_peron =", value, "odrSendPeron");
            return (Criteria) this;
        }

        public Criteria andOdrSendPeronNotEqualTo(String value) {
            addCriterion("odr_send_peron <>", value, "odrSendPeron");
            return (Criteria) this;
        }

        public Criteria andOdrSendPeronGreaterThan(String value) {
            addCriterion("odr_send_peron >", value, "odrSendPeron");
            return (Criteria) this;
        }

        public Criteria andOdrSendPeronGreaterThanOrEqualTo(String value) {
            addCriterion("odr_send_peron >=", value, "odrSendPeron");
            return (Criteria) this;
        }

        public Criteria andOdrSendPeronLessThan(String value) {
            addCriterion("odr_send_peron <", value, "odrSendPeron");
            return (Criteria) this;
        }

        public Criteria andOdrSendPeronLessThanOrEqualTo(String value) {
            addCriterion("odr_send_peron <=", value, "odrSendPeron");
            return (Criteria) this;
        }

        public Criteria andOdrSendPeronLike(String value) {
            addCriterion("odr_send_peron like", value, "odrSendPeron");
            return (Criteria) this;
        }

        public Criteria andOdrSendPeronNotLike(String value) {
            addCriterion("odr_send_peron not like", value, "odrSendPeron");
            return (Criteria) this;
        }

        public Criteria andOdrSendPeronIn(List<String> values) {
            addCriterion("odr_send_peron in", values, "odrSendPeron");
            return (Criteria) this;
        }

        public Criteria andOdrSendPeronNotIn(List<String> values) {
            addCriterion("odr_send_peron not in", values, "odrSendPeron");
            return (Criteria) this;
        }

        public Criteria andOdrSendPeronBetween(String value1, String value2) {
            addCriterion("odr_send_peron between", value1, value2, "odrSendPeron");
            return (Criteria) this;
        }

        public Criteria andOdrSendPeronNotBetween(String value1, String value2) {
            addCriterion("odr_send_peron not between", value1, value2, "odrSendPeron");
            return (Criteria) this;
        }

        public Criteria andOdrWhiIdIsNull() {
            addCriterion("odr_whi_id is null");
            return (Criteria) this;
        }

        public Criteria andOdrWhiIdIsNotNull() {
            addCriterion("odr_whi_id is not null");
            return (Criteria) this;
        }

        public Criteria andOdrWhiIdEqualTo(Integer value) {
            addCriterion("odr_whi_id =", value, "odrWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrWhiIdNotEqualTo(Integer value) {
            addCriterion("odr_whi_id <>", value, "odrWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrWhiIdGreaterThan(Integer value) {
            addCriterion("odr_whi_id >", value, "odrWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrWhiIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("odr_whi_id >=", value, "odrWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrWhiIdLessThan(Integer value) {
            addCriterion("odr_whi_id <", value, "odrWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrWhiIdLessThanOrEqualTo(Integer value) {
            addCriterion("odr_whi_id <=", value, "odrWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrWhiIdIn(List<Integer> values) {
            addCriterion("odr_whi_id in", values, "odrWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrWhiIdNotIn(List<Integer> values) {
            addCriterion("odr_whi_id not in", values, "odrWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrWhiIdBetween(Integer value1, Integer value2) {
            addCriterion("odr_whi_id between", value1, value2, "odrWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrWhiIdNotBetween(Integer value1, Integer value2) {
            addCriterion("odr_whi_id not between", value1, value2, "odrWhiId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdIsNull() {
            addCriterion("odr_rep_id is null");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdIsNotNull() {
            addCriterion("odr_rep_id is not null");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdEqualTo(String value) {
            addCriterion("odr_rep_id =", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdNotEqualTo(String value) {
            addCriterion("odr_rep_id <>", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdGreaterThan(String value) {
            addCriterion("odr_rep_id >", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdGreaterThanOrEqualTo(String value) {
            addCriterion("odr_rep_id >=", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdLessThan(String value) {
            addCriterion("odr_rep_id <", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdLessThanOrEqualTo(String value) {
            addCriterion("odr_rep_id <=", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdLike(String value) {
            addCriterion("odr_rep_id like", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdNotLike(String value) {
            addCriterion("odr_rep_id not like", value, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdIn(List<String> values) {
            addCriterion("odr_rep_id in", values, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdNotIn(List<String> values) {
            addCriterion("odr_rep_id not in", values, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdBetween(String value1, String value2) {
            addCriterion("odr_rep_id between", value1, value2, "odrRepId");
            return (Criteria) this;
        }

        public Criteria andOdrRepIdNotBetween(String value1, String value2) {
            addCriterion("odr_rep_id not between", value1, value2, "odrRepId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}